import request from '@/utils/request'

// 查询工位-线体列表
export function listStationLine(query) {
  return request({
    url: '/set/stationLine/list',
    method: 'get',
    params: query
  })
}

// 查询工位-线体详细
export function getStationLine(id) {
  return request({
    url: '/set/stationLine/' + id,
    method: 'get'
  })
}

// 新增工位-线体
export function addStationLine(data) {
  return request({
    url: '/set/stationLine',
    method: 'post',
    data: data
  })
}

// 修改工位-线体
export function updateStationLine(data) {
  return request({
    url: '/set/stationLine',
    method: 'put',
    data: data
  })
}

// 删除工位-线体
export function delStationLine(id) {
  return request({
    url: '/set/stationLine/' + id,
    method: 'delete'
  })
}

// 导出工位-线体
export function exportStationLine(query) {
  return request({
    url: '/set/stationLine/export',
    method: 'get',
    params: query
  })
}
// 下载模板
export function importTemplate() {
  return request({
    url: '/set/stationLine/importTemplate',
    method: 'get',
  })
}